package com.woniuxy.finance.service;

import com.github.pagehelper.PageInfo;
import com.woniuxy.commons.entity.QueryEntity;
import com.woniuxy.commons.utils.ResponseResult;
import com.woniuxy.finance.entity.Deal;
import com.woniuxy.finance.entity.Refund;

import java.math.BigDecimal;
import java.util.List;

/**
 * @ClassName DealService
 * @Description TODO
 * @Author WXY
 * @Date 2022/6/10 14:27
 * @Version 1.0
 */
public interface DealService {

    //查找全部交易成功记录
    ResponseResult<List<Deal>> findAll();
    //按周查找交易成功记录
    ResponseResult<List<Deal>> findAllByWeek();
    //按月查找交易成功记录
    ResponseResult<List<Deal>> findAllByMonth();
    //按具体的日期查找记录
    ResponseResult<List<Deal>> findAllByDate(String date);
    //查找全部交易退款记录
    ResponseResult<List<Refund>> findRefundAll();
    //查找交易总金额
    BigDecimal sumDeal();
    //查找交易单量
    int numDeal();
    //查找有效销售总额
    BigDecimal effectSum();
}
